package com.ailesson.video.mapper;

import com.ailesson.video.entity.VideoVisitorEntity;
import com.ailesson.video.model.dto.VideoVisitorCountDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 视频来访者记录表
 * 
 * @author mac
 * @email mac@gmail.com
 * @date 2024-10-02 10:31:00
 */
@Mapper
public interface VideoVisitorMapper extends BaseMapper<VideoVisitorEntity> {

    List<VideoVisitorCountDto> queryCount(@Param("courseId") Long courseId,@Param("startDate") String startDate,
                                          @Param("endDate") String endDate);
}
